package com.da.javatest.leetCode;

/**
 * @author chenlida
 * @date 2019/1/17 11:44
 * @description
 */
public class Code704 {
    public int search(int[] nums, int target) {
        for (int i = 0; i < nums.length; i++) {
            if (nums[i] == target) {
                return i;
            }
        }
        return -1;
    }
}
